﻿@{
    <!-- set explicit layout -->
    Layout = "~/Views/Shared/_Admin.cshtml";
}

<h2 class="hr">@ViewBag.Title</h2>
@RenderBody()
<!-- define a named section -->
<!-- Check whether the referencing view given the definition for this named section -->
@if (IsSectionDefined("Scripts"))
{
    @section scripts{
        <!-- re-declare the parent section to extend to referencing view -->
        @RenderSection("scripts",false)
    }
}